﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demoi
{
    class Dog : Animal, ISwim
    {
        public Dog(string name) : base(name) { }
        public void Swim()
        {
            Console.WriteLine("我叫{0}，我会游泳", this.Name);
        }
        public override void Eat()
        {
            Console.WriteLine("我叫{0}，我爱吃骨头", this.Name);
        }
    }
}